package com.cosmoplat.xikai.business.service;

import com.cosmoplat.xikai.business.domain.dto.mes.CloseAlarmByCheckedMesDTO;
import com.cosmoplat.xikai.business.domain.dto.mes.MaterialUpdateByMesDTO;
import com.cosmoplat.xikai.business.domain.dto.mes.ProductionPlanByMesDTO;
import com.serotonin.modbus4j.exception.ModbusInitException;
import com.serotonin.modbus4j.exception.ModbusTransportException;

/**
 * @ClassName MesCallService
 * @Description mes调用接口的逻辑
 * @Author wdf
 * @Date 2025/1/7
 */
public interface MesCallService {

    /**
     * 更新物料信息 - mes
     * @param material
     * @return
     */
    boolean updateMaterial(MaterialUpdateByMesDTO material);

    /**
     * 更新生产计划信息 - mes
     * @param productionPlan
     * @return
     */
    boolean productionPlan(ProductionPlanByMesDTO productionPlan);

    /**
     * 点检完成，关闭三色灯
     * @date 14:51 2025/1/7
     * @param closeAlarmByChecked
     * @return boolean
     **/
    boolean closeAlarmByChecked(CloseAlarmByCheckedMesDTO closeAlarmByChecked) throws ModbusInitException, ModbusTransportException;
}
